package com.gowants.pems.mapper;

import com.gowants.pems.model.Station;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StationMapper {

    public List<Station> select(@Param("record") Station record);

    public Station selectById(String id);

    public int insert(Station station);

    public int update(@Param("record") Station record);

    public int delete(String id);

    public int checkName(String name);

    public int checkNameById(@Param("name") String name,@Param("id") String id);
}
